package com.dfbz.demo07_泛型的擦除;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {

        ExampleImpl example = new ExampleImpl();
        Number res = example.method(10);

        System.out.println(res);
    }
}

interface IExample<T> {
    T method(T t);
}

class ExampleImpl implements IExample<Number> {
    @Override
    public Number method(Number number) {
        return number;
    }
}
